package o;

import com.huawei.appgallery.appcomment.impl.bean.CommentDiagApplyResBean;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;

class bcl$d implements IServerCallBack {
    final /* synthetic */ bcl ˏ;

    private bcl$d(bcl o_bcl) {
        this.ˏ = o_bcl;
    }

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        if (responseBean instanceof CommentDiagApplyResBean) {
            if (responseBean.getRtnCode_() == 0) {
                CommentDiagApplyResBean commentDiagApplyResBean = (CommentDiagApplyResBean) responseBean;
                if (commentDiagApplyResBean.ˏ() == null) {
                    bcl.ˎ(this.ˏ, 0);
                } else if (bcl.ˏ(this.ˏ, commentDiagApplyResBean)) {
                    bcl.ˋ(this.ˏ, commentDiagApplyResBean.ˏ().ॱ());
                } else {
                    bcl.ˎ(this.ˏ, 0);
                }
            } else if (responseBean.getRtnCode_() == 2) {
                bcl.ˎ(this.ˏ, 104);
            } else {
                bcl.ˎ(this.ˏ, 0);
            }
        } else if (responseBean instanceof bcu) {
            bcb.ˋ.ˎ("CommentDiaImpl", "CommentDiagConfirm rtn code: " + responseBean.getRtnCode_());
        } else {
            bcl.ˎ(this.ˏ, 0);
        }
    }
}
